package com.devplatform.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AuthorDto {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    private String username;
    private String avatar;
    private int level;
    private LocalDateTime createTime;
    //均以子链接查询得出
    private int articleCount;//原创文章数
    private int codeAge;//码龄
}
